package com.ruoyi.web.wapper;

import com.ruoyi.common.wapper.BaseControllerWrapper;
import org.apache.commons.lang3.ObjectUtils;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

public class ProductMemberUnionWapper extends BaseControllerWrapper {

    public ProductMemberUnionWapper(Map<String, Object> single) {
        super(single);
    }

    public ProductMemberUnionWapper(List<Map<String, Object>> multi) {
        super(multi);
    }

    @Override
    public void wrapTheMap(Map<String, Object> map) {

        try {

            Long userId = (Long) map.get("userId");
            if (ObjectUtils.isNotEmpty(userId)){
                map.put("userIdStr", String.valueOf(userId));
            }

        }catch (Exception ex){
            ex.printStackTrace();
        }
    }
}
